import request from '@/utils/request'

export function fetchSmsList(query) {
  return request({
    url: '/backend/sms/list',
    method: 'get',
    params: query
  })
}


export function fetchCreateSms(data) {
  return request({
    url: '/backend/sms/create',
    method: 'post',
    data: data
  })
}

export function fetchUpdateSms(data) {
  return request({
    url: '/backend/sms/update',
    method: 'post',
    data: data
  })
}

export function fetchDeleteSms(id) {
  return request({
    url: '/backend/sms/delete',
    method: 'post',
    data: {
      id: id
    }
  })
}
